home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3c
/
sem_unlink.z
/
sem_unlink
Wrap
Text File
|
1998-10-20
|
5KB
|
133 lines
sssseeeemmmm____uuuunnnnlllliiiinnnnkkkk((((2222)))) sssseeeemmmm____uuuunnnnlllliiiinnnnkkkk((((2222))))
NNNNAAAAMMMMEEEE
_ssss_eeee_mmmm______uuuu_nnnn_llll_iiii_nnnn_kkkk - deletes a posix named semaphore
CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
_####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_eeee_mmmm_aaaa_pppp_hhhh_oooo_rrrr_eeee_...._hhhh_>>>>
_iiii_nnnn_tttt _ssss_eeee_mmmm______uuuu_nnnn_llll_iiii_nnnn_kkkk _((((_cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_n_a_m_e_))))_;;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_ssss_eeee_mmmm______uuuu_nnnn_llll_iiii_nnnn_kkkk deletes the semaphore, named by the character string at
address _n_a_m_e, from the file namespace. The named semaphore and its state
will persist after the call to _ssss_eeee_mmmm______uuuu_nnnn_llll_iiii_nnnn_kkkk, if one or more processes still
reference the semaphore. Once the last reference has been dropped, the
semaphore ceases to exist [see _ssss_eeee_mmmm______cccc_llll_oooo_ssss_eeee(2)].
_ssss_eeee_mmmm______uuuu_nnnn_llll_iiii_nnnn_kkkk will fail if one or more of the following are true:
[EACCES] Search permission is denied for a component of the _n_a_m_e
prefix.
[EACCES] Write permission is denied on the directory containing the
semaphore to be removed and the process does not have the
super-user privilege.
[EACCES] The parent directory has the sticky bit set and the
semaphore is not writable by the user; the user does not
own the parent directory and the user does not own the
semaphore.
[EACCES] Write permission is denied on the semaphore named by _n_a_m_e.
[EFAULT] _n_a_m_e points outside the process's allocated address space.
[EINTR] A signal was caught during the _ssss_eeee_mmmm______uuuu_nnnn_llll_iiii_nnnn_kkkk system call.
[ELOOP] Too many symbolic links were encountered in translating
_n_a_m_e.
[ENAMETOOLONG] The length of the _n_a_m_e argument exceeds {_PPPP_AAAA_TTTT_HHHH______MMMM_AAAA_XXXX}, or the
length of a _n_a_m_e component exceeds {_NNNN_AAAA_MMMM_EEEE______MMMM_AAAA_XXXX} while
______PPPP_OOOO_SSSS_IIII_XXXX______NNNN_OOOO______TTTT_RRRR_UUUU_NNNN_CCCC is in effect.
[ENOENT] The named semaphore does not exist or is a null pathname.
[ENOTDIR] A component of the _n_a_m_e is not a directory.
[EPERM] The named semaphore is a directory.
[EROFS] The semaphore to be unlinked is part of a read-only file
system.
PPPPaaaaggggeeee 1111
sssseeeemmmm____uuuunnnnlllliiiinnnnkkkk((((2222)))) sssseeeemmmm____uuuunnnnlllliiiinnnnkkkk((((2222))))
SSSSEEEEEEEE AAAALLLLSSSSOOOO
_ssss_eeee_mmmm______oooo_pppp_eeee_nnnn(1), _ssss_eeee_mmmm______cccc_llll_oooo_ssss_eeee(2)
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Upon successful completion, a value of 0 is returned. Otherwise, a value
of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the error.
PPPPaaaaggggeeee 2222